package ShenBlueInc.Center;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;

import ShenBlueDao.BankDao;
import ShenBlueInc.Sql.BankName_inc;

public class BankName_Center {
	BankName_inc inc=new BankName_inc();
	public LinkedList<BankDao> BankItems(){
		
		LinkedList<BankDao> list=new LinkedList<BankDao>();
		ResultSet rs=inc.Items();
		try {
			while(rs.next()) {
				BankDao Dao=new BankDao(rs.getString(1), rs.getString(2));
				list.add(Dao);
			}
		} catch (SQLException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
		return list;
	}
}
